
Ext.define('CosimRisk.view.TreePanel', {
	extend : 'Ext.tree.Panel',
	alias : 'widget.TreePanel',
	title: '当前项目:空',
	id: 'TreePanel',
	width : 240,
	height : 300,
//	padding: '5 3 3 10',
	bodyStyle: 'background:#E5E5E5;padding:0px',
    frame:true,
	//dockedItems : [{
	//	xtype : 'toolbar',
	//	dock : 'top',
	//	items : [{			
	//		xtype : 'button',
	//		id : 'allopen',
	//		text: '展开全部',
	//		handler: function () {
	//		    Ext.getCmp('TreePanel').expandAll();
	//		}
	//	 },{
	//		xtype : 'button',
	//		id : 'allclose',
	//		text: '收起全部',
	//		handler: function () {
	//		    Ext.getCmp('TreePanel').collapseAll();
	//		}
	//	 }]
	//}],
	root : {
	    text: "系统",
	    bodyStyle: 'background:#E5E5E5;padding:0px',
	    id:'system',
	    expanded: true,
	    leaf: false,
	    iconCls: 'icon-system',
		children : [{
		    text: '项目管理',
		    iconCls: 'icon-management',
			leaf: true,
			id : '01',
			//children : []
		}, {
		    text: '项目网络图',
		    iconCls: 'icon-netgraph',
			id : '02',
			leaf: true,
			//children : []
		}, {
		    text: '仿真版本和开始新仿真',
		    iconCls: 'icon-version',
			id : '03',
			leaf: true,
			//children : []
		}, {
		    text: '仿真结果(空)',
		    iconCls: 'icon-getresults',
		    id: '04',
		    expanded: false,
            expandable:false,
			leaf: false
			//children: []
		}, {
		    text: '帮助',
		    iconCls: 'icon-help',
			id : '05',
			leaf: true,
			//children : []
		}]
	}
});
